<?php
/**
 * 模型类库
 * Created:
 * User: lisgroup
 * Time: 2017/5/21 20:39
 */
namespace Home\model;

use lisfw\DB\Model;

class index extends Model {
    public function getVersion()
    {
        $ret = array();
        $ret['php_version'] = PHP_VERSION;
        $sql = "select VERSION() as version";
        $ret['mysql_version'] = $this->getOne($sql);
        return $ret;
    }
}